<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. 
require_once template('head'); 
echo <<<EOT
-->
<title>{$lang_skinManager}</title>
</head>
<body>
<br>
<!--
EOT;
if($action=="modify"){
echo <<<EOT
-->
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="table_list1">
          <tr> 
            <td align="center" class="list1_title">{$lang_skinManager}</td>
          </tr>
          <tr>
            <td height="20" align="left" >
			  <form method="POST" name="myform"  action="skin_manager.php?action=editor&id=$id" onSubmit="return CheckForm_skin();" target="_self">
			  <b>{$lang_modifyTemplate}</b>
			    {$lang_name} 
			    <input name="skin_name" type="text" size="16" value="$skin_m[skin_name]">
			     {$lang_skinDocument} 
  <input name="skin_file" type="text" size="10"  value="$skin_m[skin_file]">
  {$lang_skinIntroduce} 
  <input name="skin_info" type="text" size="30"  value="$skin_m[skin_info]">
  <input type="submit" name="Submit2" value="{$lang_modify}" class="tj">  
	        </form></td>
          </tr>
		  		<tr>
		  <td class="list1_footer"  align="center">$foot</td>
	  </tr>
</table>
</body>
</html>
<!--
EOT;
}
else{
echo <<<EOT
-->
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="table_list1">
          <tr> 
            <td colspan="7" align="center" class="list1_title">{$lang_skinManager}</td>
          </tr>
          <tr>
            <td  class="list1_input" colspan="7">
			  <form  enctype="multipart/form-data" method="POST" name="myform"  action="skin_manager.php?action=add&lang=$lang" onSubmit="return CheckForm_skin();" target="_self">
			  <b>{$lang_skinAddNew}</b><br>
			    {$lang_name} 
			    <input name="skin_name" type="text" size="10">
				{$lang_skinfile} 
  <input name="skin_file" type="text" size="8" >
 <input name="skin_files" type="file"  size="12" >
  {$lang_skinIntroduce} 
  <input name="skin_info" type="text" size="20">
  <input type="submit" name="Submit2" value="{$lang_add}" class="tj">  
	        </form></td>
          </tr>
              <tr>
                <td  class="list1_lm" align="center">{$lang_selected}</td>
                <td  class="list1_lm" align="center">{$lang_order}</td>
                <td  class="list1_lm" align="center" >{$lang_name}</td>
                <td  class="list1_lm" align="center" >{$lang_skinDocument}</td>
                <td  class="list1_lm" align="center" >{$lang_skinIntroduce}</td>
				<td  class="list1_lm" align="center" >{$lang_preview}</td>
				<td  class="list1_lm" align="center" >{$lang_operate}</td>
              </tr>
			  <form name="del" method="Post" action="skin_manager.php?action=delete&lang=$lang" onSubmit="return ConfirmDelall();">
<!--
EOT;
foreach ($skin_list as $key=>$val){
echo <<<EOT
-->          
              <tr class="tdbg">
              <td class="list1_content_titile" align="center" ><input name='id' type='checkbox' onClick="unselectall()" id="id" value='$val[id]' class="xz"></td>
                <td align="center" class="list1_content">$val[id]</td>
                <td  class="list1_content" align="center">$val[skin_name]</a></td>
                <td  class="list1_content" align="center">$val[skin_file]</td>
                <td align="center" class="list1_content">$val[skin_info]</td>
				<td align="center" class="list1_content"><a href="../../templates/$val[skin_file]/view.jpg" target="_blank">{$lang_preview}</a></td>
				<td align="center" class="list1_content" style="color:#0066FF;"><a href="skin_manager.php?id=$val[id]&action=modify&lang=$lang" >{$lang_editor}</a> | <a href="skin_manager.php?id=$val[id]&action=delete&lang=$lang" onClick="return ConfirmDel();" >{$lang_delete}</a></td>
              </tr>
<!--
EOT;
}
echo <<<EOT
-->
       
        </td>
          </tr> 
		   
   	   <tr> 
	        <td  class="input_bottom" align="center"><input name="chkAll" class="xz" type="checkbox" id="chkAll" onclick=CheckAll(this.form) value="checkbox"></td>
            <td  class="input_bottom" >
              {$lang_selectall}  
              </td>
			  <td  class="input_bottom" colspan="6"><input name="submit" type='submit' value='{$lang_deleteselected}' style="*padding-top:4px;"><input name="action_type" type="hidden" id="action_type" value="del"><input name="allid" type="hidden" id="allid" value=""></form></td>
          </tr>
   	   <tr>
   	     <td height="0" align="center"  colspan="7">$page_list</td>
        </tr>
		<tr>
		  <td class="list1_footer" colspan="7" align="center">$foot</td>
	  </tr>
</table>
</body>
</html>
<!--
EOT;
}
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>-->